package com.qh.org.service;

import com.qh.org.domain.Shop;
import com.qh.basic.service.BaseService;
import com.qh.org.domain.ShopAuditLog;
import com.qh.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qhao
 * @since 2023-02-04
 */
public interface IShopService extends BaseService<Shop> {
    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop) throws MessagingException;

    /**
     * 店铺审核：审核通过
     * @param log
     */
    void auditPass(ShopAuditLog log) throws MessagingException;
    /**
     * 店铺审核：审核不通过
     * @param log
     */
    void auditReject(ShopAuditLog log) throws MessagingException;

    /**
     * 激活店铺
     * @param id
     */
    void updateById(Long id);

    /**
     * echarts的方法
     * @return
     */
    List<ShopDto> echarts();
}
